//package com.css.cloudlearn.productornacos.route;
//
//import com.css.dynamic.event.TestEvent;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.context.ApplicationEventPublisher;
//import org.springframework.context.ApplicationEventPublisherAware;
//import org.springframework.stereotype.Component;
//
//
///**
// * @author 郭辉
// * @className TODO
// * @description TODO
// * @date 2023/2/25 10:25
// * @company 海康威视
// * @since 1.0.0
// */
//@Slf4j
//@Component
//public class DynamicRouteEventPublisher implements ApplicationEventPublisherAware {
//
//
//    private ApplicationEventPublisher applicationEventPublisher;
//
//    public void publishEvent(String message) {
//        log.info("开始发布自定义事件");
//        TestEvent customApplicationEvent = new TestEvent(this, message);
//        // 发布事件
//        applicationEventPublisher.publishEvent(customApplicationEvent);
//        log.info("发布自定义事件结束");
//    }
//
//
//    @Override
//    public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) {
//        this.applicationEventPublisher = applicationEventPublisher;
//    }
//}